import java.util.Arrays;
import java.util.Random;
   import java.util.*;

public class Test {
    public static void main1(String[] args){
        for (int i = 100; i <1000 ; i++) {

            int tmp=i;
            int sum=0;
            while(tmp>0){
                sum+=Math.pow(tmp%10,3);
                tmp/=10;
            }
            if(sum==i){
                System.out.print(i+" ");
            }
        }
    }

    public static void main2(String[] args){

        for (int i = 0; i <5; i++) {

           if(i!=0) {
               for (int j = 0; j < 3*i; j++) {
                   System.out.print(" ");
               }
           }
            for(int k=0;k<5;k++){
                System.out.print("*  ");
            }
            System.out.println();
        }
    }
    public static void main3(String[] args){
                int[] arr=new int[]{1,2,3,4,5};
                for(int i=0;i<arr.length;i++){
                    if(i!=arr.length-1) {
                        System.out.print(arr[i] + ",");
                    }
                    else{
                        System.out.print(arr[i]);
                    }
                }
    }

    public static void main4(String[] args){

        int[][] arr= new int[][]{{91,25,8},{56,14,2},{47,4,67}};

       int[][] arr2= new int[arr.length][arr[0].length];
       for(int i=0;i<arr.length;i++){
           for (int j = 0; j < arr[0].length; j++) {
               arr2[i][j]=arr[j][i];
           }
       }
        for (int i = 0; i < 3; i++) {
            System.out.println(Arrays.toString(arr2[i]));
        }
    }
    public static void main5(String[] args){
        String str = new String("HelloWorld");
        String s2=new String();
        StringBuffer s3=new StringBuffer();
        for(int i=0;i<str.length();i++){
            System.out.print(str.charAt(i));
        }

        for(int i=0;i<str.length();i++){
            if(Character.isLowerCase(str.charAt(i))){
              char ch= str.charAt(i);
              ch-=32;
              s3.append(ch);
            }
            if(Character.isUpperCase(str.charAt(i))){
                char ch=str.charAt(i);
                ch+=32;
                s3.append(ch);
            }
        }
        System.out.println();
        System.out.println(s3);
    }

    public static void main6(String[] args) {
        Random random = new Random();
        for(int i=0;i<5;i++){
            System.out.println(20+random.nextInt(11));
        }
    }

    public static void main7(String[] args){
        Scanner sc = new Scanner(System.in);
           StringBuffer stringBuffer = new StringBuffer();
           int n =sc.nextInt();
           int m= sc.nextInt();
           for(int i=0;i<m;i++){
               for (int j = 0; j <n; j++) {
                 stringBuffer.append("%");
               }
           }
           int count=0;
           for(int i=0;i<m*n;i++){
              if(count%m==0&&count!=0){
                  System.out.println();
              }
              System.out.print(stringBuffer.charAt(i));
              count++;
           }
    }

    public static void main(String[] args) {


                // 创建Calendar对象
                Calendar calendar = Calendar.getInstance();

                // 设置开始时间为2023年1月1日
                calendar.set(Calendar.YEAR, 2023);
                calendar.set(Calendar.MONTH, Calendar.JANUARY);
                calendar.set(Calendar.DAY_OF_MONTH, 1);

                // 添加180天
                calendar.add(Calendar.DAY_OF_MONTH, 180);

                // 获取竣工日期
                int year = calendar.get(Calendar.YEAR);
                int month = calendar.get(Calendar.MONTH) + 1;
                int day = calendar.get(Calendar.DAY_OF_MONTH);

                // 输出竣工日期
                System.out.println("竣工日期：" + year + "年" + month + "月" + day + "日");
            }
        }


